//服务器主入口
var express=require('express');
var app=express();
var router=require('./router.js');
//post请求要引入中间件
var bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({
	extended: true
}));

//应用router
app.use("/api",router)

app.listen(3001,function(){
  console.log("服务器运行在3001端口上");
})
